package org.cloud.consumer.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author hjx
 * @title: TopicManReceiver
 * @description: TODO
 * @date 2021/10/28
 */
@Component
@RabbitListener(queues = "topic_message")
public class TopicReceiver {
    @RabbitHandler
    public void process(Map<String,Object> map){
        System.out.println("TopicReceiver消费者收到消息  : " + map.toString());
    }
}
